package cc.beup.common.constant;

/**
 * @Author: Byron Bai
 * @Date: 2021/4/18 20:07
 * @Description: 平台api返回code
 */
public enum PlatformResponseCodeEnum {

    TOKEN_INVALID("20300", "会话令牌无效，请尝试重新登陆"),
    SYS_ERROR("9999", "system error"),
    BUSINESS_ERROR("9000", "business error"),
    VALIDATION_ERROR("8000", "validation error"),
    EXECUTE_SUCCESS("10000", "execute success"),
    ;

    private String code;
    private String msg;

    PlatformResponseCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
